<?php

			if($power==0)
			{
 		  	include_once("ErrorMessage/Insufficient_Permissions.php");
              
			}
     	    if($mc->get($fromUsername . "_do") == "电话")
            {
                 $mc->set($fromUsername . "_do", "电话", 0, 600);  
            $phone=$mysql->getLine("SELECT * FROM address_book where student_name='$form_Content';");
               if($phone)
               {
                $contentStr = "姓名:".$phone['student_name']."\n电话:".$phone['phone_number'];
                $description="输入姓名继续查询 输入【菜单】返回  ";
                $resultStr = sprintf($imageTpl, $fromUsername, $toUsername,$contentStr , $description,"","");
                echo $resultStr;
                exit;
               }
                else
                {
                $contentStr = "抱歉！不存在该学生的信息";
                $description="输入姓名继续查询 输入【菜单】返回 ";
                $resultStr = sprintf($imageTpl, $fromUsername, $toUsername,$contentStr , $description,"","");
                echo $resultStr;
                exit;
                }
            }
            else
            {
            $mc->delete($fromUsername . "_do", 0);    
            $mc->set($fromUsername . "_do", "电话", 0, 600); 
            
            $contentStr = "在对话框输入学生姓名"; 
            $description="";
            $resultStr = sprintf($imageTpl, $fromUsername, $toUsername,$contentStr , $description,"","");
            echo $resultStr;
            exit;
            }
     

         
         
?>